if [ ! -r $HOME/.linuxmint/mintDesktop ]
then
	mkdir -p $HOME/.linuxmint
	touch $HOME/.linuxmint/mintDesktop
	touch $HOME/.linuxmint/mintDesktop_smb_browsing	
	mkdir -p $HOME/Documents
	mkdir -p $HOME/Music
	mkdir -p $HOME/Pictures
	mkdir -p $HOME/Downloads
	mkdir -p $HOME/Videos
	mkdir -p $HOME/Network
	mkdir -p $HOME/Projects
	mkdir -p $HOME/Templates
	mkdir -p $HOME/.nautilus
	mkdir -p $HOME/.nautilus/metafiles

	cp /usr/lib/linuxmint/mintDesktop/templates/* $HOME/Templates/
	cp /usr/lib/linuxmint/mintDesktop/home.xml $HOME/.nautilus/metafiles/file:%2F%2F%2Fhome%2F$USER.xml

	chown -R $USER:$USER $HOME/.linuxmint
	chown -R $USER:$USER $HOME/.nautilus
	chown $USER:$USER $HOME/Documents
	chown $USER:$USER $HOME/Music
	chown $USER:$USER $HOME/Pictures
	chown $USER:$USER $HOME/Downloads
	chown $USER:$USER $HOME/Videos
	chown $USER:$USER $HOME/Projects
	chown $USER:$USER $HOME/Network
	chown $USER:$USER $HOME/Templates
	chown $USER:$USER $HOME/Templates/*
fi
if [ -f $HOME/.linuxmint/mintDesktop_smb_browsing ]
then
	mkdir -p $HOME/Network
	chown $USER:$USER $HOME/Network
	fusesmb $HOME/Network -o allow_other
fi
